import { QrcodeTheme } from './qrcode-theme.entity'
import { Entity, PrimaryGeneratedColumn, ManyToOne } from 'typeorm'
import { Member } from './member.entity'

@Entity({
  name: 'qrcode'
})
export class Qrcode {
  @PrimaryGeneratedColumn()
  id: number

  @ManyToOne(type => QrcodeTheme, theme => theme.qrcodes)
  theme: QrcodeTheme

  @ManyToOne(type => Member, member => member.qrcode)
  member: Member
}
